package org.dromara.fms.domain.bo;

import org.dromara.fms.domain.FmsBillType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 财务主业务对象 fms_bill_type
 *
 * @author wenrui Su
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FmsBillType.class, reverseConvertGenerate = false)
public class FmsBillTypeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long typeId;

    /**
     * 账单名称
     */
    @NotBlank(message = "账单名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 财务类别
     */
    @NotBlank(message = "财务类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fmsType;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
